<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
	<head>
		<title>公假管理</title>
		<base target="_self" />
		<jsp:include page="../../../webmanager/common/init.jsp"></jsp:include>
		<!-------样式文件调用注意不要改变顺序------>
		<link href="<%=path%>/themes/classic_blue/css/base.css" rel="stylesheet" type="text/css" />
		<link href="<%=path%>/themes/classic_blue/css/main_style.css" rel="stylesheet" type="text/css" />
		<!--[if lt IE 7]><link href="<%=path%>/themes/classic_blue/css/ie7hack.css" rel="stylesheet" type="text/css" media="screen"/><![endif]--><!--不可删--->
		<!--                       Javascripts 注意不要改变顺序                      -->
		<script type="text/javascript" SRC="<%=path%>/themes/classic_blue/js/jquery-1.6.2.min.js"></script>
		<!-- 组件template -->
		<script type="text/javascript" src="<%=path%>/themes/classic_blue/js/tpl.base.js"></script>	
		<!-- jQuery Configuration -->
		<script type="text/javascript" src="<%=path%>/themes/classic_blue/js/simpla.jquery.configuration.js"></script>
		<script type="text/javascript" src="<%=path%>/javaScript/My97DatePicker/WdatePicker.js"></script>		
	</head>
	<script type="text/javascript">
		//取消提示信息
		function cancelMessage(){
			if(document.getElementById("messageId")){
				var messageSpanId = document.getElementById("messageId");
				messageSpanId.innerHTML = "";
			}
		}

		//页面关闭
		function winClose()
		{
			window.returnValue = "ok";
			window.close();
		}
	     
		//提交
		function doSubmit(submitUrl)
		{			
			document.forms[0].action=submitUrl;
			document.forms[0].submit();		
		}
		//生成功能按钮	
		//mpmenu1=new mMenu('','winClose()','script','<%=request.getContextPath()%>/images/img_ht_wz_44.gif','62','24','0','100','2');		
		</script>
	<body onload="showMessage()">
		<!--标题开始-->
		<div class="ui-title fn-clear">
			<span class="ui-title-icon fn-left"><img
					src="<%=path%>/themes/classic_blue/images/icons/note-pinned.png" />
			</span>
			<h2 class="ui-title-cnt fn-left">
				公假管理
			</h2>
			<div id="funbut">
				<a href="javascript:winClose()"><img src="<%=request.getContextPath() %>/images/img_ht_wz_44.gif" style="width:62;height:24;"></a>
		    </div>
		</div>
		<!--标题结束-->
		<!--表单内容开始-->
		<div class="ui-form fn-clear">
			<form name="frm" class="">
			<s:hidden name="kqGjgl.id"></s:hidden>
			<s:hidden name="kqGjgl.cjy"></s:hidden>
			<s:hidden name="kqGjgl.cjsj"></s:hidden>
				<table id="" class="ui-table ui-table-form ">
					<tbody class="discolor_form">
						<tr>
						  <td colspan="4">
						  	<div id="infoMessage"></div>
						  </td>
						</tr>
						<tr>
							<td class="ui-form-cl2-l">
								<label for="zs">
									假期名称（<font color="red">*</font>）：
								</label>
							</td>
							<td colspan="3" class="ui-form-cl2-r ">
								<input type="text" id="jqmc" name="kqGjgl.jqmc" value="${kqGjgl.jqmc}" reg="^.+$" tip="班次名称不能为空！"/>
							</td>							
						</tr>
						<tr>
							<td class="ui-form-cl2-l">
								<label for="">
									时间（<font color="red">*</font>）：
								</label>
							</td>
							<td class="ui-form-cl2-r">
								<input type="text" id="rq" name="kqGjgl.rq" value="${kqGjgl.rq}" reg="^.+$" tip="班次名称不能为空！" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
							</td>
						</tr>
						<tr>
							<td class="ui-form-cl2-l">
								<label for="">
									备注：
								</label>
							</td>
							<td class="ui-form-cl2-r">
								<textarea rows="6" cols="6" id="bz" name="kqGjgl.bz">${kqGjgl.bz}</textarea>
							</td>
						</tr>
					</tbody>
					<s:if test="editState==1 || editState==2">
					<tfoot>
						<tr>
							<td colspan="4">
							<s:if test="editState==1">
								<input class="ui-btn ui-btn-normal" type="button" name="button"
									id="" value="保存" title="保存" onclick="doSubmit('gjglAction!createGjgl.do')" />
							</s:if>
							<s:elseif test="editState==2">
								<input class="ui-btn ui-btn-normal" type="button" name="button"
									id="" value="修改" title="修改" onclick="doSubmit('gjglAction!reworkGjgl.do')" />
							</s:elseif>
									
								<input class="ui-btn ui-btn-normal" type="reset" value="重置"
									title="重新填写" />
							</td>
						</tr>
					</tfoot>
					</s:if>
				</table>
			</form>
		</div>
		<!--表单内容结束-->
	</body>
</html>